function [ fname ] = get_feature_name ( fstruct )

if isstruct(fstruct)
    fstruct = {fstruct};
end

fname = {};
for i=1:length(fstruct)
    tmp_fname = sprintf('%s/%d:', fstruct{i}.feature_id, fstruct{i}.feature_channel);
    for k=1:length(fstruct{i}.inputs)
        ich = sprintf('%s/%d', fstruct{i}.inputs{k}.sensor_id, fstruct{i}.inputs{k}.sensor_channel);
        if k>1
            tmp_fname = [tmp_fname ',' ich];
        else
            tmp_fname = [tmp_fname ich];
        end
    end
    fname{end+1} = tmp_fname;
end

end
